<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台用户管理</title>
</head>
<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl;?>/admincss/thickbox.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/thickbox.compressed.js" /></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/user.js" /></script>

<body>
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="">
E-Mail:
<input name="email" type="text" id="email" size="50" value="<?php echo $this->email;?>" />
<input type="submit" name="button_submit" id="button_submit" value="搜索" class="btn_submit"/>
</form>
    
    
<table class="tableA" width="100%" border="1">
  <tr>
    <td width="5%" nowrap="nowrap">用户编号</td>
    <td  nowrap="nowrap">操作</td>
    <td width="6%" nowrap="nowrap">英文姓</td>
    <td width="13%" nowrap="nowrap">英文名</td>
    <td width="13%" nowrap="nowrap">中文姓名/全名</td>    
    <td width="15%" nowrap="nowrap">性别</td>
    <td width="14%" nowrap="nowrap">国家或地区</td>
    <td width="14%" nowrap="nowrap">工作单位（中文名称）</td>
    <td width="14%" nowrap="nowrap">工作单位（英文名称）</td>
    <td width="12%" nowrap="nowrap">联系电话</td>
    <td width="4%" nowrap="nowrap">E-Mail</td> 
  </tr>
<?php
foreach ($this->list as $v){
$ip = long2ip($v['regip']);
$surl=$this->url($this->baseUrl, 'user', 'show', 'UserId='.$v['uid'] . '&height=450' );
$v['gender'] = $v['gender']==1 ? '男' : '女';
print <<<EOT
  <tr id="row_{$v['uid']}">
    <td nowrap="nowrap">{$v['uid']}</td>
    <td nowrap="nowrap" id="opp_{$v['UserId']}"><a href="{$surl}" class="thickbox">查看</a> &nbsp;<a href="#"  onclick="javascript:return ResetUser({$v['uid']});">重置密码</a> &nbsp;<a href="#" onClick="javascript:return UserDel({$v['uid']});">删除</a> </td>
    <td nowrap="nowrap">{$v['enfname']}</td>
    <td nowrap="nowrap">{$v['enlname']}</td>
	<td nowrap="nowrap">{$v['name']}</td>
    <td nowrap="nowrap">{$v['gender']}</td>
    <td>{$v['nation']}</td>
    <td nowrap="nowrap">{$v['unit']}</td>
	<td nowrap="nowrap">{$v['cnunit']}</td>
    <td nowrap="nowrap">{$v['phone']}</td>
    <td nowrap="nowrap">{$v['email']}</td>
  </tr>
EOT;
}
?>
</table>
</body>
</html>
